{assign var='logged' value=$logged|default:false}
<div id="pageHeader">LOGO - Titolo Sito</div>
<nav id="HeadMenu" class="Horizontal">
	<ul>
		{foreach key=name item=link from=$headMenu}
			<li><a {if $link neq ''}href="{$link}"{/if} >{$name}</a>		
		{/foreach}
		{if $logged}
		    <li><a href="index.php?ctrl=Auth&act=logout"{/if} >Logout</a>        
		{/if} 
	</ul>
</nav>